import { put } from "@/utils";

export interface PutUserStartParams {
  id: number;
  type: boolean;
}

interface PutUserStartResponse {
  meta: {
    status: number;
    msg: string;
  };
  data: {
    email: string;
    id: number;
    mg_state: boolean;
    mobile: string;
    rid: number;
    username: string;
  };
}
const putUserStart = (params: PutUserStartParams): Promise<PutUserStartResponse> => {
  return put(`users/${params.id}/state/${params.type}`);
};

export default putUserStart;
